// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** accountLogin POST /api/login/account */
export async function accountLoginUsingPost(
  body: API.AccountLoginDTO,
  options?: { [key: string]: any }
) {
  return request<API.ResultVoid_>('/api/login/account', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** accountInfo POST /api/login/account/info */
export async function accountInfoUsingPost(options?: { [key: string]: any }) {
  return request<API.ResultAccountLoginInfo_>('/api/login/account/info', {
    method: 'POST',
    ...(options || {}),
  });
}

/** accountLogout POST /api/login/account/logout */
export async function accountLogoutUsingPost(options?: { [key: string]: any }) {
  return request<API.ResultVoid_>('/api/login/account/logout', {
    method: 'POST',
    ...(options || {}),
  });
}
